# 数据库连接池

QT += core sql
TEMPLATE = lib
CONFIG += dll

DEFINES += ZFLIB_MAKER
DESTDIR = $$PWD/dist

include($$PWD/../ZFLibCommon.pri)

CONFIG(debug,debug|release) {
    TARGET = ZDBConnectionPool_d
} else {
    TARGET = ZDBConnectionPool
}

HEADERS += \
    $$PWD/ZDBConnectionPool.h

SOURCES += \
    $$PWD/ZDBConnectionPool.cpp

# install
ZDBConnectionPool_1.files = $$PWD/ZDBConnectionPool.h \
    $$PWD/../ZFLibGlobal.h $$PWD/../ZFCommonHeader.h
ZDBConnectionPool_1.path =  $$DIST_DIR/ZDBConnectionPool/include
INSTALLS += ZDBConnectionPool_1

ZDBConnectionPool_2.files = $$PWD/ZDBConnectionPool.pri
ZDBConnectionPool_2.path =  $$DIST_DIR/ZDBConnectionPool
INSTALLS += ZDBConnectionPool_2

# install to DIST_DIR
defined(DIST_DIR, var) {
ZDBConnectionPool_3.files = $$PWD/dist/*
ZDBConnectionPool_3.path =  $$DIST_DIR/ZDBConnectionPool/bin
INSTALLS += ZDBConnectionPool_3
}
